﻿/********************************************************************************************
 * 文件名称:	UserInfo.cs
 * 设计人员:	严(yanxianghui@gmail.com)
 * 设计时间:	2009-03-16
 * 功能描述:	管理员
 * 注意事项:	
 * 版权所有:	Copyright (c) 2009, Fujian SIRC
 * 修改记录: 	修改时间		人员		修改备注
 *				    ----------		------		-------------------------------------------------
 *
 ********************************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using Shanfree.Framework.Utility;

namespace Shanfree.SharpMovie.Model
{
    /// <summary>
    /// 用户
    /// </summary>
    [Persistence(IsPrimaryKey = false, ColumnName = "User")]
    public class UserInfo
    {
        private string _id;
        /// <summary>
        /// 主键
        /// </summary>
        [Persistence(IsPrimaryKey = true, ColumnName = "ID")]
        public string ID
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }

        private string _name;
        /// <summary>
        /// 名称
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Name")]
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        private string _pwd;
        /// <summary>
        /// 密码
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Password")]
        public string Password
        {
            get
            {
                return _pwd;
            }
            set
            {
                _pwd = value;
            }
        }

        private string _email;
        /// <summary>
        /// 邮件
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Email")]
        public string Email
        {
            get
            {
                return _email;
            }
            set
            {
                _email = value;
            }
        }

        private DateTime _time;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Time")]
        public DateTime Time
        {
            get
            {
                return _time;
            }
            set
            {
                _time = value;
            }
        }

        private string _image;
        /// <summary>
        /// 用户头像
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Image")]
        public string Image
        {
            get
            {
                return _image;
            }
            set
            {
                _image = value;
            }
        }

        private string _remark;
        /// <summary>
        /// 用户说明
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Remark")]
        public string Remark
        {
            get
            {
                return _remark;
            }
            set
            {
                _remark = value;
            }
        }

        private string _friends;
        /// <summary>
        /// 好友数
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Friends", IsExtend = true)]
        public string Friends
        {
            get
            {
                return _friends;
            }
            set
            {
                _friends = value;
            }
        }

        private string _followers;
        /// <summary>
        /// 关注者
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Followers", IsExtend = true)]
        public string Followers
        {
            get
            {
                return _followers;
            }
            set
            {
                _followers = value;
            }
        }

        private string _comments;
        /// <summary>
        /// 微评数
        /// </summary>
        [Persistence(IsPrimaryKey = false, ColumnName = "Comments", IsExtend = true)]
        public string Comments
        {
            get
            {
                return _comments;
            }
            set
            {
                _comments = value;
            }
        }

        /// <summary>
        /// 管理员帐户
        /// </summary>
        public UserInfo()
        {

        }
    }
}
